import React from 'react'
import {Button} from 'antd'
import {SearchOutlined} from '@ant-design/icons'
export default function ButtonTest() {
    return (
        <div>
            <h3>button组件</h3>
            <Button type="primary">Primary Button</Button>
            <Button type="primary" block>Button block</Button>
            <Button type="primary" danger>Button danger</Button>
            <Button danger>Button danger</Button>
            <Button type="primary" danger disabled>Button disabled</Button>
            <Button type="primary" danger href='http://baidu.com'>Button href</Button>
            <Button type='primary' htmlType='submit'>Button htmlType</Button>
            <Button onClick={() => {
                console.log('button click')
            }}>点击</Button>

            <Button type='primary' icon={<SearchOutlined />}>搜索</Button>
            <Button type='primary' icon={<SearchOutlined />}></Button>

            <Button loading={true}>loading</Button>
        </div>
    )
}
